// Copyright (c) 2009 Luca Marrocco.
// Modified or written by Luca Marrocco for inclusion with codej.
// Licensed under the Apache License, Version 2.0 (the "License")
package codej.ast;

import codej.ast.*;

/** @author Luca Marrocco */
public class For extends Statement {

	private Statement statement;
	private ForControl forControl;

	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

	public ForControl getForControl() {
		return forControl;
	}

	public Statement getStatement() {
		return statement;
	}

	public For setForControl(ForControl forControl) {
		this.forControl = forControl;

		return this;
	}

	public For setStatement(Statement statement) {
		this.statement = statement;
		return this;
	}
}
